using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using ODT.Common.Core;
using ODT.Common.Services;
using PPChartControl.Properties;

namespace PPChartControl
{
	public class ChangePlotItems : Form
	{
		public bool isgantryplot;

		public bool issinesweepplot;

		public bool isfreqbasedplot;

		public bool isopenloopplot;

		public int normalizedplot;

		public int[] existingrightaxisitems;

		public int[] existingleftaxisitems;

		public int[] changedrightaxisitems;

		public int[] changedleftaxisitems;

		public bool changedisfreqbased;

		public int changednormalized;

		private IContainer components;

		private CheckBox checkBox_normalize;

		private Button button1;

		private RadioButton radioButton_normalize_initial;

		private RadioButton radioButton_normalize_home;

		private GroupBox groupBox1;

		private GroupBox groupBox_sinesweeprelated;

		private CheckBox checkBox_freq;

		private CheckBox checkBox_leftFEGantry;

		private CheckBox checkBox_leftFE;

		private CheckBox checkBox_leftServoCommand;

		private CheckBox checkBox_leftVelocity;

		private CheckBox checkBox_leftAcceleration;

		private CheckBox checkBox_leftPosition;

		private Label label_position;

		private Label label_velocity;

		private Label label_Acceleration;

		private Label label_servocommand;

		private Label label_FE;

		private Label label_FE_gantry;

		private CheckBox checkBox_rightFEGantry;

		private CheckBox checkBox_rightFE;

		private CheckBox checkBox_rightServoCommand;

		private CheckBox checkBox_rightVelocity;

		private CheckBox checkBox_rightAcceleration;

		private CheckBox checkBox_rightPosition;

		private Label label1;

		private Label label2;

		public ChangePlotItems()
		{
			InitializeComponent();
			base.Icon = Resources.ApplicationIcon;
			base.ShowIcon = true;
			SetLanguageTranslations();
		}

		public ChangePlotItems(bool isgantry, bool issinesweep, bool isfreqbased, bool isopenloop, int normalized, int[] rightaxisitem, int[] leftaxisitem)
		{
			isgantryplot = isgantry;
			issinesweepplot = issinesweep;
			isfreqbasedplot = isfreqbased;
			isopenloopplot = isopenloop;
			normalizedplot = normalized;
			existingrightaxisitems = rightaxisitem;
			existingleftaxisitems = leftaxisitem;
			InitializeComponent();
			base.Icon = Resources.ApplicationIcon;
			base.ShowIcon = true;
			SetLanguageTranslations();
		}

		private void SelectPlotitemsload(object sender, EventArgs e)
		{
			int[] array = new int[5] { 1, 2, 3, 4, 5 };
			changedrightaxisitems = new int[6];
			changedleftaxisitems = new int[6];
			changednormalized = 0;
			changedisfreqbased = false;
			if (!isgantryplot)
			{
				label_FE_gantry.Hide();
				checkBox_leftFEGantry.Hide();
				checkBox_rightFEGantry.Hide();
			}
			else
			{
				label_FE_gantry.Show();
				checkBox_leftFEGantry.Show();
				checkBox_rightFEGantry.Show();
			}
			if (issinesweepplot)
			{
				groupBox_sinesweeprelated.Show();
				if (isfreqbasedplot)
				{
					checkBox_freq.Checked = true;
				}
				else
				{
					checkBox_freq.Checked = false;
				}
			}
			else
			{
				groupBox_sinesweeprelated.Hide();
			}
			if (normalizedplot == 1)
			{
				checkBox_normalize.Checked = true;
				radioButton_normalize_home.Checked = false;
				radioButton_normalize_initial.Checked = true;
			}
			else if (normalizedplot == 2)
			{
				checkBox_normalize.Checked = true;
				radioButton_normalize_home.Checked = true;
				radioButton_normalize_initial.Checked = false;
			}
			else
			{
				checkBox_normalize.Checked = false;
				radioButton_normalize_home.Enabled = false;
				radioButton_normalize_initial.Enabled = false;
				radioButton_normalize_home.Checked = false;
				radioButton_normalize_initial.Checked = true;
			}
			if (existingleftaxisitems[0] == 1)
			{
				checkBox_leftPosition.Checked = true;
			}
			else
			{
				checkBox_leftPosition.Checked = false;
			}
			if (existingleftaxisitems[1] == 1)
			{
				checkBox_leftVelocity.Checked = true;
			}
			else
			{
				checkBox_leftVelocity.Checked = false;
			}
			if (existingleftaxisitems[2] == 1)
			{
				checkBox_leftAcceleration.Checked = true;
			}
			else
			{
				checkBox_leftAcceleration.Checked = false;
			}
			if (existingleftaxisitems[3] == 1)
			{
				checkBox_leftServoCommand.Checked = true;
			}
			else
			{
				checkBox_leftServoCommand.Checked = false;
			}
			if (existingleftaxisitems[4] == 1)
			{
				checkBox_leftFE.Checked = true;
			}
			else
			{
				checkBox_leftFE.Checked = false;
			}
			if (existingleftaxisitems[5] == 1)
			{
				checkBox_leftFEGantry.Checked = true;
			}
			else
			{
				checkBox_leftFEGantry.Checked = false;
			}
			if (existingrightaxisitems[0] == 1)
			{
				checkBox_rightPosition.Checked = true;
			}
			else
			{
				checkBox_rightPosition.Checked = false;
			}
			if (existingrightaxisitems[1] == 1)
			{
				checkBox_rightVelocity.Checked = true;
			}
			else
			{
				checkBox_rightVelocity.Checked = false;
			}
			if (existingrightaxisitems[2] == 1)
			{
				checkBox_rightAcceleration.Checked = true;
			}
			else
			{
				checkBox_rightAcceleration.Checked = false;
			}
			if (existingrightaxisitems[3] == 1)
			{
				checkBox_rightServoCommand.Checked = true;
			}
			else
			{
				checkBox_rightServoCommand.Checked = false;
			}
			if (existingrightaxisitems[4] == 1)
			{
				checkBox_rightFE.Checked = true;
			}
			else
			{
				checkBox_rightFE.Checked = false;
			}
			if (existingrightaxisitems[5] == 1)
			{
				checkBox_rightFEGantry.Checked = true;
			}
			else
			{
				checkBox_rightFEGantry.Checked = false;
			}
			if (isopenloopplot)
			{
				checkBox_rightFE.Enabled = false;
				checkBox_leftFE.Enabled = false;
			}
		}

		private void checkBox_normalize_CheckedChanged(object sender, EventArgs e)
		{
			if (checkBox_normalize.Checked)
			{
				radioButton_normalize_home.Enabled = true;
				radioButton_normalize_initial.Enabled = true;
			}
			else
			{
				radioButton_normalize_home.Enabled = false;
				radioButton_normalize_initial.Enabled = false;
			}
		}

		private void button1_Click(object sender, EventArgs e)
		{
			if (checkBox_leftPosition.Checked)
			{
				changedleftaxisitems[0] = 1;
			}
			else
			{
				changedleftaxisitems[0] = 0;
			}
			if (checkBox_leftVelocity.Checked)
			{
				changedleftaxisitems[1] = 1;
			}
			else
			{
				changedleftaxisitems[1] = 0;
			}
			if (checkBox_leftAcceleration.Checked)
			{
				changedleftaxisitems[2] = 1;
			}
			else
			{
				changedleftaxisitems[2] = 0;
			}
			if (checkBox_leftServoCommand.Checked)
			{
				changedleftaxisitems[3] = 1;
			}
			else
			{
				changedleftaxisitems[3] = 0;
			}
			if (checkBox_leftFE.Checked)
			{
				changedleftaxisitems[4] = 1;
			}
			else
			{
				changedleftaxisitems[4] = 0;
			}
			if (checkBox_leftFEGantry.Checked)
			{
				changedleftaxisitems[5] = 1;
			}
			else
			{
				changedleftaxisitems[5] = 0;
			}
			if (checkBox_rightPosition.Checked)
			{
				changedrightaxisitems[0] = 1;
			}
			else
			{
				changedrightaxisitems[0] = 0;
			}
			if (checkBox_rightVelocity.Checked)
			{
				changedrightaxisitems[1] = 1;
			}
			else
			{
				changedrightaxisitems[1] = 0;
			}
			if (checkBox_rightAcceleration.Checked)
			{
				changedrightaxisitems[2] = 1;
			}
			else
			{
				changedrightaxisitems[2] = 0;
			}
			if (checkBox_rightServoCommand.Checked)
			{
				changedrightaxisitems[3] = 1;
			}
			else
			{
				changedrightaxisitems[3] = 0;
			}
			if (checkBox_rightFE.Checked)
			{
				changedrightaxisitems[4] = 1;
			}
			else
			{
				changedrightaxisitems[4] = 0;
			}
			if (checkBox_rightFEGantry.Checked)
			{
				changedrightaxisitems[5] = 1;
			}
			else
			{
				changedrightaxisitems[5] = 0;
			}
			changedisfreqbased = false;
			if (checkBox_freq.Checked)
			{
				changedisfreqbased = true;
			}
			changednormalized = 0;
			if (checkBox_normalize.Checked)
			{
				if (radioButton_normalize_initial.Checked)
				{
					changednormalized = 1;
				}
				else
				{
					changednormalized = 2;
				}
			}
		}

		private void SetLanguageTranslations()
		{
			ILanguageTranslationService service = ServiceManager.GetService<ILanguageTranslationService>();
			SuspendLayout();
			checkBox_normalize.Text = service.Translate("PPChartControl.NormalizePosition");
			button1.Text = service.Translate("Common.Ok");
			radioButton_normalize_initial.Text = service.Translate("PPChartControl.InitialPosition");
			radioButton_normalize_home.Text = service.Translate("PPChartControl.HomePosition");
			checkBox_freq.Text = service.Translate("PPChartControl.ShowSelectedItemWrtToFrequency");
			label_position.Text = service.Translate("PPChartControl.Position");
			label_velocity.Text = service.Translate("PPChartControl.Velocity");
			label_Acceleration.Text = service.Translate("PPChartControl.Acceleration");
			label_servocommand.Text = service.Translate("PPChartControl.ServoCommand");
			label_FE.Text = service.Translate("PPChartControl.FollowingError");
			label_FE_gantry.Text = service.Translate("PPChartControl.GantryFollowingError");
			label1.Text = service.Translate("PPChartControl.AddToLeftAxis");
			label2.Text = service.Translate("PPChartControl.AddToRightAxis");
			Text = service.Translate("PPChartControl.SelectItemsToPlot");
			ResumeLayout(false);
		}

		protected override void Dispose(bool disposing)
		{
			if (disposing && components != null)
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		private void InitializeComponent()
		{
			this.checkBox_normalize = new System.Windows.Forms.CheckBox();
			this.button1 = new System.Windows.Forms.Button();
			this.radioButton_normalize_initial = new System.Windows.Forms.RadioButton();
			this.radioButton_normalize_home = new System.Windows.Forms.RadioButton();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.groupBox_sinesweeprelated = new System.Windows.Forms.GroupBox();
			this.checkBox_freq = new System.Windows.Forms.CheckBox();
			this.checkBox_leftPosition = new System.Windows.Forms.CheckBox();
			this.checkBox_leftAcceleration = new System.Windows.Forms.CheckBox();
			this.checkBox_leftVelocity = new System.Windows.Forms.CheckBox();
			this.checkBox_leftServoCommand = new System.Windows.Forms.CheckBox();
			this.checkBox_leftFE = new System.Windows.Forms.CheckBox();
			this.checkBox_leftFEGantry = new System.Windows.Forms.CheckBox();
			this.label_position = new System.Windows.Forms.Label();
			this.label_velocity = new System.Windows.Forms.Label();
			this.label_Acceleration = new System.Windows.Forms.Label();
			this.label_servocommand = new System.Windows.Forms.Label();
			this.label_FE = new System.Windows.Forms.Label();
			this.label_FE_gantry = new System.Windows.Forms.Label();
			this.checkBox_rightFEGantry = new System.Windows.Forms.CheckBox();
			this.checkBox_rightFE = new System.Windows.Forms.CheckBox();
			this.checkBox_rightServoCommand = new System.Windows.Forms.CheckBox();
			this.checkBox_rightVelocity = new System.Windows.Forms.CheckBox();
			this.checkBox_rightAcceleration = new System.Windows.Forms.CheckBox();
			this.checkBox_rightPosition = new System.Windows.Forms.CheckBox();
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.groupBox1.SuspendLayout();
			this.groupBox_sinesweeprelated.SuspendLayout();
			base.SuspendLayout();
			this.checkBox_normalize.AutoSize = true;
			this.checkBox_normalize.Location = new System.Drawing.Point(6, 32);
			this.checkBox_normalize.Name = "checkBox_normalize";
			this.checkBox_normalize.Size = new System.Drawing.Size(149, 17);
			this.checkBox_normalize.TabIndex = 2;
			this.checkBox_normalize.Text = "Normalize position w.r.t. to";
			this.checkBox_normalize.UseVisualStyleBackColor = true;
			this.checkBox_normalize.CheckedChanged += new System.EventHandler(checkBox_normalize_CheckedChanged);
			this.button1.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.button1.Location = new System.Drawing.Point(189, 293);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(119, 33);
			this.button1.TabIndex = 3;
			this.button1.Text = "OK";
			this.button1.UseVisualStyleBackColor = true;
			this.button1.Click += new System.EventHandler(button1_Click);
			this.radioButton_normalize_initial.AutoSize = true;
			this.radioButton_normalize_initial.Location = new System.Drawing.Point(319, 19);
			this.radioButton_normalize_initial.Name = "radioButton_normalize_initial";
			this.radioButton_normalize_initial.Size = new System.Drawing.Size(87, 17);
			this.radioButton_normalize_initial.TabIndex = 4;
			this.radioButton_normalize_initial.TabStop = true;
			this.radioButton_normalize_initial.Text = "initial position";
			this.radioButton_normalize_initial.UseVisualStyleBackColor = true;
			this.radioButton_normalize_home.AutoSize = true;
			this.radioButton_normalize_home.Location = new System.Drawing.Point(319, 41);
			this.radioButton_normalize_home.Name = "radioButton_normalize_home";
			this.radioButton_normalize_home.Size = new System.Drawing.Size(90, 17);
			this.radioButton_normalize_home.TabIndex = 5;
			this.radioButton_normalize_home.TabStop = true;
			this.radioButton_normalize_home.Text = "home position";
			this.radioButton_normalize_home.UseVisualStyleBackColor = true;
			this.groupBox1.Controls.Add(this.checkBox_normalize);
			this.groupBox1.Controls.Add(this.radioButton_normalize_home);
			this.groupBox1.Controls.Add(this.radioButton_normalize_initial);
			this.groupBox1.Location = new System.Drawing.Point(7, 177);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(466, 68);
			this.groupBox1.TabIndex = 6;
			this.groupBox1.TabStop = false;
			this.groupBox_sinesweeprelated.Controls.Add(this.checkBox_freq);
			this.groupBox_sinesweeprelated.Location = new System.Drawing.Point(7, 251);
			this.groupBox_sinesweeprelated.Name = "groupBox_sinesweeprelated";
			this.groupBox_sinesweeprelated.Size = new System.Drawing.Size(466, 32);
			this.groupBox_sinesweeprelated.TabIndex = 7;
			this.groupBox_sinesweeprelated.TabStop = false;
			this.checkBox_freq.AutoSize = true;
			this.checkBox_freq.Location = new System.Drawing.Point(6, 9);
			this.checkBox_freq.Name = "checkBox_freq";
			this.checkBox_freq.Size = new System.Drawing.Size(206, 17);
			this.checkBox_freq.TabIndex = 0;
			this.checkBox_freq.Text = "Show selected item w.r.t. to frequency";
			this.checkBox_freq.UseVisualStyleBackColor = true;
			this.checkBox_leftPosition.AutoSize = true;
			this.checkBox_leftPosition.Location = new System.Drawing.Point(26, 45);
			this.checkBox_leftPosition.Name = "checkBox_leftPosition";
			this.checkBox_leftPosition.Size = new System.Drawing.Size(15, 14);
			this.checkBox_leftPosition.TabIndex = 0;
			this.checkBox_leftPosition.UseVisualStyleBackColor = true;
			this.checkBox_leftAcceleration.AutoSize = true;
			this.checkBox_leftAcceleration.Location = new System.Drawing.Point(26, 85);
			this.checkBox_leftAcceleration.Name = "checkBox_leftAcceleration";
			this.checkBox_leftAcceleration.Size = new System.Drawing.Size(15, 14);
			this.checkBox_leftAcceleration.TabIndex = 1;
			this.checkBox_leftAcceleration.UseVisualStyleBackColor = true;
			this.checkBox_leftVelocity.AutoSize = true;
			this.checkBox_leftVelocity.Location = new System.Drawing.Point(26, 65);
			this.checkBox_leftVelocity.Name = "checkBox_leftVelocity";
			this.checkBox_leftVelocity.Size = new System.Drawing.Size(15, 14);
			this.checkBox_leftVelocity.TabIndex = 2;
			this.checkBox_leftVelocity.UseVisualStyleBackColor = true;
			this.checkBox_leftServoCommand.AutoSize = true;
			this.checkBox_leftServoCommand.Location = new System.Drawing.Point(26, 105);
			this.checkBox_leftServoCommand.Name = "checkBox_leftServoCommand";
			this.checkBox_leftServoCommand.Size = new System.Drawing.Size(15, 14);
			this.checkBox_leftServoCommand.TabIndex = 3;
			this.checkBox_leftServoCommand.UseVisualStyleBackColor = true;
			this.checkBox_leftFE.AutoSize = true;
			this.checkBox_leftFE.Location = new System.Drawing.Point(26, 125);
			this.checkBox_leftFE.Name = "checkBox_leftFE";
			this.checkBox_leftFE.Size = new System.Drawing.Size(15, 14);
			this.checkBox_leftFE.TabIndex = 4;
			this.checkBox_leftFE.UseVisualStyleBackColor = true;
			this.checkBox_leftFEGantry.AutoSize = true;
			this.checkBox_leftFEGantry.Location = new System.Drawing.Point(26, 145);
			this.checkBox_leftFEGantry.Name = "checkBox_leftFEGantry";
			this.checkBox_leftFEGantry.Size = new System.Drawing.Size(15, 14);
			this.checkBox_leftFEGantry.TabIndex = 5;
			this.checkBox_leftFEGantry.UseVisualStyleBackColor = true;
			this.label_position.AutoSize = true;
			this.label_position.Location = new System.Drawing.Point(219, 44);
			this.label_position.Name = "label_position";
			this.label_position.Size = new System.Drawing.Size(44, 13);
			this.label_position.TabIndex = 8;
			this.label_position.Text = "Position";
			this.label_velocity.AutoSize = true;
			this.label_velocity.Location = new System.Drawing.Point(219, 65);
			this.label_velocity.Name = "label_velocity";
			this.label_velocity.Size = new System.Drawing.Size(44, 13);
			this.label_velocity.TabIndex = 9;
			this.label_velocity.Text = "Velocity";
			this.label_Acceleration.AutoSize = true;
			this.label_Acceleration.Location = new System.Drawing.Point(208, 85);
			this.label_Acceleration.Name = "label_Acceleration";
			this.label_Acceleration.Size = new System.Drawing.Size(66, 13);
			this.label_Acceleration.TabIndex = 10;
			this.label_Acceleration.Text = "Acceleration";
			this.label_servocommand.AutoSize = true;
			this.label_servocommand.Location = new System.Drawing.Point(199, 105);
			this.label_servocommand.Name = "label_servocommand";
			this.label_servocommand.Size = new System.Drawing.Size(85, 13);
			this.label_servocommand.TabIndex = 11;
			this.label_servocommand.Text = "Servo Command";
			this.label_FE.AutoSize = true;
			this.label_FE.Location = new System.Drawing.Point(203, 124);
			this.label_FE.Name = "label_FE";
			this.label_FE.Size = new System.Drawing.Size(76, 13);
			this.label_FE.TabIndex = 12;
			this.label_FE.Text = "Following Error";
			this.label_FE_gantry.AutoSize = true;
			this.label_FE_gantry.Location = new System.Drawing.Point(186, 145);
			this.label_FE_gantry.Name = "label_FE_gantry";
			this.label_FE_gantry.Size = new System.Drawing.Size(110, 13);
			this.label_FE_gantry.TabIndex = 13;
			this.label_FE_gantry.Text = "Gantry Following Error";
			this.checkBox_rightFEGantry.AutoSize = true;
			this.checkBox_rightFEGantry.Location = new System.Drawing.Point(419, 145);
			this.checkBox_rightFEGantry.Name = "checkBox_rightFEGantry";
			this.checkBox_rightFEGantry.Size = new System.Drawing.Size(15, 14);
			this.checkBox_rightFEGantry.TabIndex = 19;
			this.checkBox_rightFEGantry.UseVisualStyleBackColor = true;
			this.checkBox_rightFE.AutoSize = true;
			this.checkBox_rightFE.Location = new System.Drawing.Point(419, 125);
			this.checkBox_rightFE.Name = "checkBox_rightFE";
			this.checkBox_rightFE.Size = new System.Drawing.Size(15, 14);
			this.checkBox_rightFE.TabIndex = 18;
			this.checkBox_rightFE.UseVisualStyleBackColor = true;
			this.checkBox_rightServoCommand.AutoSize = true;
			this.checkBox_rightServoCommand.Location = new System.Drawing.Point(419, 105);
			this.checkBox_rightServoCommand.Name = "checkBox_rightServoCommand";
			this.checkBox_rightServoCommand.Size = new System.Drawing.Size(15, 14);
			this.checkBox_rightServoCommand.TabIndex = 17;
			this.checkBox_rightServoCommand.UseVisualStyleBackColor = true;
			this.checkBox_rightVelocity.AutoSize = true;
			this.checkBox_rightVelocity.Location = new System.Drawing.Point(419, 65);
			this.checkBox_rightVelocity.Name = "checkBox_rightVelocity";
			this.checkBox_rightVelocity.Size = new System.Drawing.Size(15, 14);
			this.checkBox_rightVelocity.TabIndex = 16;
			this.checkBox_rightVelocity.UseVisualStyleBackColor = true;
			this.checkBox_rightAcceleration.AutoSize = true;
			this.checkBox_rightAcceleration.Location = new System.Drawing.Point(419, 85);
			this.checkBox_rightAcceleration.Name = "checkBox_rightAcceleration";
			this.checkBox_rightAcceleration.Size = new System.Drawing.Size(15, 14);
			this.checkBox_rightAcceleration.TabIndex = 15;
			this.checkBox_rightAcceleration.UseVisualStyleBackColor = true;
			this.checkBox_rightPosition.AutoSize = true;
			this.checkBox_rightPosition.Location = new System.Drawing.Point(419, 45);
			this.checkBox_rightPosition.Name = "checkBox_rightPosition";
			this.checkBox_rightPosition.Size = new System.Drawing.Size(15, 14);
			this.checkBox_rightPosition.TabIndex = 14;
			this.checkBox_rightPosition.UseVisualStyleBackColor = true;
			this.label1.AutoSize = true;
			this.label1.Location = new System.Drawing.Point(10, 9);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(47, 26);
			this.label1.TabIndex = 20;
			this.label1.Text = "Add to\r\nLeft Axis";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			this.label2.AutoSize = true;
			this.label2.Location = new System.Drawing.Point(398, 9);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(54, 26);
			this.label2.TabIndex = 21;
			this.label2.Text = "Add to \r\nRight Axis";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
			base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			base.ClientSize = new System.Drawing.Size(479, 338);
			base.Controls.Add(this.label2);
			base.Controls.Add(this.label1);
			base.Controls.Add(this.checkBox_rightFEGantry);
			base.Controls.Add(this.checkBox_rightFE);
			base.Controls.Add(this.checkBox_rightServoCommand);
			base.Controls.Add(this.checkBox_rightVelocity);
			base.Controls.Add(this.checkBox_rightAcceleration);
			base.Controls.Add(this.checkBox_rightPosition);
			base.Controls.Add(this.checkBox_leftFEGantry);
			base.Controls.Add(this.checkBox_leftFE);
			base.Controls.Add(this.label_FE_gantry);
			base.Controls.Add(this.checkBox_leftServoCommand);
			base.Controls.Add(this.label_FE);
			base.Controls.Add(this.checkBox_leftVelocity);
			base.Controls.Add(this.label_servocommand);
			base.Controls.Add(this.checkBox_leftAcceleration);
			base.Controls.Add(this.label_Acceleration);
			base.Controls.Add(this.checkBox_leftPosition);
			base.Controls.Add(this.label_velocity);
			base.Controls.Add(this.label_position);
			base.Controls.Add(this.groupBox_sinesweeprelated);
			base.Controls.Add(this.groupBox1);
			base.Controls.Add(this.button1);
			base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			base.MaximizeBox = false;
			base.MinimizeBox = false;
			base.Name = "ChangePlotItems";
			base.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
			this.Text = "Select Items to Plot";
			base.Load += new System.EventHandler(SelectPlotitemsload);
			this.groupBox1.ResumeLayout(false);
			this.groupBox1.PerformLayout();
			this.groupBox_sinesweeprelated.ResumeLayout(false);
			this.groupBox_sinesweeprelated.PerformLayout();
			base.ResumeLayout(false);
			base.PerformLayout();
		}
	}
}
